public class OpenPorts {
	private static boolean[] openPort = new boolean[65536];
	private static OpenPorts oP = new OpenPorts();
	
	/**
	 * Provate constructor
	 */
	private OpenPorts() {
		return;
	}
	
	/**
	 * Static method that gets the instance of the singleton which is the array of booleans <i>openPort</i>
	 * @return
	 * 		The instance of the singleton <i>openPort</i>
	 */
	public static OpenPorts getInstance() {
		if (oP == null) {
			oP = new OpenPorts();
		}
		return oP;
	}
	
	/**
	 * Setter that set a value in the array <i>openPort</i>
	 * @param i
	 * 		Index of the value
	 * @param b
	 * 		Value to set
	 */
	public void set(int i, boolean b) {
		openPort[i] = b;
	}
	
	/**
	 * Getter that get a value in th array <i>openPort</i>
	 * @param i
	 * 		Index of the value
	 * @return
	 * 		The value
	 */
	public boolean get(int i) {
		return openPort[i];
	}
}
